#ifndef	___PLAYER_DATA___
#define ___PLAYER_DATA___

#include "Progress.h"
#include "FormData.h"

class PlayerData
{
public:
	PlayerData();

	Progress*	getProgressData();
	Progress*	setProgressData();

	Forms*		getFormData();
	Forms*		setFormData();

	void		setActiveForm(const short ftype);
protected:
	bool		m_bLoadedProgress;
	bool		m_bLoadedForms;
	Progress	progress;
	Forms		forms;
};

class PlayerDataManager
{
public:
	PlayerDataManager();
	~PlayerDataManager();

	PlayerData*	get(const int& nID)const;
	PlayerData*	add(const int& nID);
	void		rmv(const int& nID);
protected:
	typedef stdext::hash_map<int, PlayerData*>	PlayerDataMap;
	PlayerDataMap		m_PlayerDataWMap;
};

#endif
